package com.y.report.entity.ext;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.kohsuke.args4j.Option;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CurrJdbcExecOpt {

    @Option(name = "-t", aliases = {"--total"}, metaVar = "type of int", usage = "整型类型参数")
    private int total = 1;

    @Option(name = "-c", aliases = {"--curr"}, metaVar = "type of int", usage = "整型类型参数")
    private int curr = 1;

    @Option(name = "-d", aliases = {"--driver"}, metaVar = "type of int", usage = "整型类型参数")
    private String driver;

    @Option(name = "-U", aliases = {"--url"}, metaVar = "type of int", usage = "整型类型参数")
    private String url;

    @Option(name = "-u", aliases = {"--username"}, metaVar = "type of int", usage = "整型类型参数")
    private String username;

    @Option(name = "-p", aliases = {"--password"}, metaVar = "type of int", usage = "整型类型参数")
    private String password;

    @Option(name = "-SQL", aliases = {"--sql"}, metaVar = "type of int", usage = "整型类型参数")
    //@Option(name = "-SQLS", aliases = {"--sqls"}, metaVar = "type of int", usage = "整型类型参数", handler = StringArrayOptionHandler.class)
    private String sql;

    @Option(name = "-S", aliases = {"--show"}, metaVar = "type of int", usage = "整型类型参数")
    private int showMode = 1;
}
